package com.jiyun.controller;


import com.jiyun.entity.day06.Answer;
import com.jiyun.feign.AnswerFeign;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("answer")
public class AnswerController {
    @Resource
    private AnswerFeign answerFeign;

    /**
     * 修改答案
     * @param answer
     */
    @RequestMapping("updateAnswer")
    public void updateAnswer(@RequestBody Answer answer){
        answerFeign.updateAnswer(answer);
    }
}
